package cn.biplam.common.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;

import cn.biplam.common.client.DataFilter;
import cn.biplam.common.client.DbResource;
import cn.biplam.common.client.OperatorResult;
import cn.biplam.common.wrapper.ErrorMessage;

/**
 * Operator交换服务接口类
 * @author WangSong 2009-9-22下午03:39:44
 * @version 1.0
 */
public interface OperatorExchangeServer extends Remote,RmiServer {
	
	/**
	 * 取执行sql结果
	 * @param opId  操作id
	 * @param userId 用户id
	 * @param filter 过滤条件
	 * @param dbResource 数据源
	 * @return 执行sql结果
	 * @throws RemoteException
	 * @throws ErrorMessage
	 */
	public OperatorResult get(String opId, 
							  String userId,
							  DataFilter filter, 
							  DbResource dbResource) throws RemoteException,ErrorMessage;
}
